import request from '@/utils/request'
/**
 * 查询字典项
 */
export function getDictByCode(dictCode) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/sysDictionary/getDictByCode',
    method: 'get',
    params: {
      dictCode
    }
  })
}
export function getClass(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/giveInfo/categoryTreeAll',
    method: 'post',
    data
  })
}
export function queryPage(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/giveInfo/queryPageGoodsInfoAll',
    method: 'post',
    data
  })
}
export function add(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/giveInfo/addGoodsForGiveInfoId',
    method: 'post',
    data
  })
}
export function detail(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/giveInfo/getGoodsInfo',
    method: 'post',
    data
  })
}






